ScrolledWindow: Replace deprecated (allow-none)
authorDaniel Boles <dboles.src@gmail.com>
Tue, 21 May 2019 19:25:54 +0000 (20:25 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Tue, 21 May 2019 20:21:14 +0000 (21:21 +0100)
We prefer (nullable) for in arguments and (optional) for out arguments
that can be passed as NULL to avoid assigning anything to them.

gtk/gtkscrolledwindow.c

index 2ba312e7418470ea7182d2f2432a4f18848003d4..1a1c03b4ae25a04698ed83dd4f6cf66ecee989c3 100644 (file)
@@ -1997,8 +1997,8 @@ gtk_scrolled_window_init (GtkScrolledWindow *scrolled_window)
 
 /**
  * gtk_scrolled_window_new:
- * @hadjustment: (allow-none): horizontal adjustment
- * @vadjustment: (allow-none): vertical adjustment
+ * @hadjustment: (nullable): horizontal adjustment
+ * @vadjustment: (nullable): vertical adjustment
  *
  * Creates a new scrolled window.
  *
@@ -2293,9 +2293,9 @@ gtk_scrolled_window_set_policy (GtkScrolledWindow *scrolled_window,
 /**
  * gtk_scrolled_window_get_policy:
  * @scrolled_window: a #GtkScrolledWindow
- * @hscrollbar_policy: (out) (allow-none): location to store the policy 
+ * @hscrollbar_policy: (out) (optional): location to store the policy
  *     for the horizontal scrollbar, or %NULL
- * @vscrollbar_policy: (out) (allow-none): location to store the policy
+ * @vscrollbar_policy: (out) (optional): location to store the policy
  *     for the vertical scrollbar, or %NULL
  * 
  * Retrieves the current policy values for the horizontal and vertical